using System;
using System.Collections.Generic;
using System.Text;

namespace Heaven.Engine.Animation
{
    /// <summary>
    /// This is a pair of a time 
    /// stamp and a state
    /// </summary>
    public class Keyframe
    {
        #region Fields

        /// <summary>
        /// A key state of a controller
        /// </summary>
        public readonly Object State;

        /// <summary>
        /// A time stamp, i.e. when the state 
        /// must be actual (milliseconds)
        /// </summary>
        public readonly double Time;

        #endregion

        #region Initialization

        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="state">A key state of a controller</param>
        /// <param name="time">A time stamp, i.e. when the state 
        /// must be actual (milliseconds)</param>
        public Keyframe(object state, double time)
        {
            this.State = state;
            this.Time = time;
        }

        #endregion
    }
}
